<style>
.page-goods-detail .seckill-container .seckill-list2 .fui-list-inner .text.timer span {
    background: #18bc9c;
	font-weight:bold;
	font-size:0.7rem;
}
.fe-floatright-bottom .icon {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
    color: #fff;
    line-height: 1.6rem;
}
.fui-tab.fui-tab-danger a.active {
    border-color: #18bc9c;
}
.label-success {
    background-color: #18bc9c;
}
.jylabel-success {
    border: 1px solid #18bc9c;
    color: #18bc9c;
}
</style>
<div class='fui-page fui-page-current'>
	<div class='fui-content member-page'>
			<div class="page-goods-detail" style="margin:0;">
					<div class="memlogo-area" style="background: url({{tomedia(pagedata.team.image) ||'../addons/jy_nongfee/resource/images/nopic.jpg'}}) no-repeat 50%;background-size: cover;height:10rem;border-radius:0;margin-bottom:0">
						<div class="bold name">
						{{pagedata.team.title}}
						</div>
						<div class="code" style="margin-top:0;">
							<div class="jylabel jylabel-info" href="javascript:;" ng-click="access_json('jy_nongfee/canlog//')" style="border: 1px solid #fff;color:#fff;">我参与的</div>
						</div>
						<span ng-if="pagedata.team.dongimg" class="c" style="position: absolute;left:50%;margin-left:-4.5rem;">
							<img class="icon" style="width:9rem;height:9rem;margin:0 auto" ng-src="{{tomedia(pagedata.team.dongimg)}}"/>
						</span>
					</div>
					<div ng-class="{'seckill-container':1,'notstart':pagedata.team.isstart==0}" style="background:#e8fcf8">
						<div class="fui-list seckill-list1" style="background:#18bc9c;width:70%">
							<div class="fui-list-inner">
								<div class="text " style="font-size:0.65rem" ng-if="pagedata.team.status==0">第{{pagedata.team.nowyaonum ||1}}{{pagedata.pluginset.y_title}}{{pagedata.team.yao.statustitle}}，完成度{{pagedata.team.israte ||0}}%</div>
								<div class="text " ng-if="pagedata.team.status==0"><span class="process" style="width:100%"><div class="inner" style="width:{{pagedata.team.israte || 0}}%"></div></span></div>
								<div class="text " ng-if="pagedata.team.status!=0">已种植{{pagedata.team.isyaonum ||0}}{{pagedata.pluginset.y_title}}</div>
							</div>
						</div>
						<div ng-if="pagedata.team.rest_time" class="fui-list seckill-list2" style="background:#e8fcf8;width:7rem">
							<div class="fui-list-inner">
								<div ng-if="pagedata.team.isstart!=1" class="text" style="color:red">距开始还有</div>
								<div ng-if="pagedata.team.isstart==1" class="text" style="color:red">距结束还有</div>
								<div class="text timer" style="color:red" ng-init="tool.time_down(pagedata.team.rest_time)">
									<span ng-if="pagedata.team.rest_time.day>0" class="time-day">{{pagedata.team.rest_time.day}}</span>{{pagedata.team.rest_time.day>0?'天':''}}<span class="time-hour">{{pagedata.team.rest_time.hour}}</span>&nbsp;:&nbsp;<span class="time-min">{{pagedata.team.rest_time.minute}}</span>&nbsp;:&nbsp;<span class="time-sec">{{pagedata.team.rest_time.second}}</span>
								</div>
							</div>
						</div>
						<div ng-if="!pagedata.team.rest_time" class="fui-list seckill-list2" style="background:#999">
							<div class="fui-list-inner">
								<div class="text" style="color:#666">{{pagedata.team.statustitle}}</div>
							</div>
						</div>
					</div>
			</div>
			<div style="padding:0.5rem">
			<style>
			.fui-icon-group .fui-icon-col-sm.border {
			   border: 1px solid #18bc9c;
			}
			.fui-cellone-icon{color:#18bc9c;padding-right:0.5rem;line-height:1.5}
			.fui-icon-group .fui-icon-col-sm .icon{font-size:1.5rem;line-height:1.5}
			</style>
			<div class="fui-icon-group new noborder col-2" style="background:#fff;margin-bottom:0.5rem">
				<div class="fui-icon-col-sm border" style="margin-top:0">
					<div class="fui-cellone" style="padding:0">
					<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-wodequanzi"></i></div>
					<div class="fui-cellone-text l">
						<div class="title bold">{{pagedata.team.jian_num ||1}}</div>
						<div class="gray" style="font-size:0.7rem">可种<span>{{pagedata.pluginset.y_title}}</span></div>
					</div>
					</div>
				</div>
				<div class="fui-icon-col-sm border" style="margin-top:0">
					<div class="fui-cellone" style="padding:0">
					<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-haoping"></i></div>
					<div class="fui-cellone-text l">
						<div class="title bold">{{pagedata.team.isnum || 1}}</div>
						<div class="gray" style="font-size:0.7rem">已种植期数</div>
					</div>
					</div>
				</div>
				<div class="fui-icon-col-sm border" style="margin-top:0">
					<div class="fui-cellone" style="padding:0">
					<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-quanzi"></i></div>
					<div class="fui-cellone-text l">
						<div ng-if="pagedata.team.jian_showtoujinum==1" class="title bold">{{pagedata.team.isfee || 0}}</div>
						<div ng-if="pagedata.team.jian_showtoujinum!=1" class="title bold">******</div>
						<div class="gray" style="font-size:0.7rem">总投入{{pagedata.pluginset.cd_title}}</div>
					</div>
					</div>
				</div>
				<div class="fui-icon-col-sm border" style="margin-top:0">
					<div class="fui-cellone" style="padding:0">
					<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-jifen1"></i></div>
					<div class="fui-cellone-text l">
						<div class="title bold">{{pagedata.team.redfee || '0.00'}}</div>
						<div class="gray" style="font-size:0.7rem">{{pagedata.pluginset.cd_title}}奖金池</div>
					</div>
					</div>
				</div>
			</div>
			<div ng-if="pagedata.team.status==0" class="row" style="margin:0.5rem 0;">
			<div class="jy-2">
			<div style="padding:0 0.2rem;">
				<a class='weui_btn weui_btn_f60' style="border-radius:1rem;background-color:#f60;" ng-click="access_json('/buybao//cangid='+pagedata.team.id)">购买加倍包</a>
			</div>
			</div>
			<div class="jy-2">
			<div style="padding:0 0.2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#18bc9c;" ng-click="access_json('/aiset//cangid='+pagedata.team.id)">设置机器人</a>
			</div>
			</div>
			</div>
			<div class="fui-tab fui-tab-danger">
				<a ng-class="{'external active':pagedata.params.status == '0'}" href="javascript:" ng-click="pagedata.params.status='0';tool.get_list('jy_nongfee/detail/getlist/',true);">可参与</a>
				<a ng-class="{'external active':pagedata.params.status == '3'}" href="javascript:" ng-click="pagedata.params.status='3';tool.get_list('jy_nongfee/detail/getlist/',true);">已停种</a>
				<a ng-class="{'external active':pagedata.params.status == '1'}" href="javascript:" ng-click="pagedata.params.status='1';tool.get_list('jy_nongfee/detail/getlist/',true);">已完成</a>
			</div>
			<div class='fui-list-group container' ng-show="pagedata.list.length>0" >
				<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
					<div class="fui-list-inner">
						<div class='bold'>{{item.title}} 
						<span ng-if="item.status==1" ng-click="pagedata.nowitem=item;pagedata.post.yaoid=item.id;pagedata.showbuy=true;" class="jylabel jylabel-success">立即参与</span>
						<span ng-if="item.status==0" ng-click="pagedata.nowitem=item;pagedata.post.yaoid=item.id;pagedata.showyue=true;" class="jylabel jylabel-warning">预约种植</span>
						</div>
						<div class='title'>种植总{{pagedata.pluginset.cd_title}}{{pagedata.team.jian_showalljinum==1?item.alljifee:'******'}}个</div>
						<div class="progress" style="margin:5px 3px;height:0.3rem;border-radius:0.05rem;">
								<div class="progress-bar" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" style="width: {{item.israte || 1}}%;background-color:#18bc9c;"><span class="sr-only">60% Complete</span></div>
						</div>
						<div class='title'>
							<span ng-if="pagedata.team.jian_showtoujinum==1" class="label label-success">已种植{{item.isfee || 0}}{{pagedata.pluginset.cd_title}}</span>
							<span ng-if="pagedata.team.jian_showtoujinum!=1" class="label label-success">已种植******{{pagedata.pluginset.cd_title}}</span>
							<span class="red" style="margin-left:0.3rem;font-size:0.6rem">完成{{item.israte}}%</span>
						</div>
						<div class='gray' style="font-size:0.55rem">
						种植时间：{{item.startime}}-{{item.endtime}}
						</div>
						
					</div>
					<div class='fui-list-angle' style="font-size:0.6rem">
							<div class="label label-success">{{item.statustitle}}</div>
							<div class='title'>种植{{item.jian_jinmin}}-{{item.jian_jinmax}}{{pagedata.pluginset.cd_title}}</div>
							<div class='title'>种植收益{{item.jian_getrate}}%</div>
							<div class='title'>{{item.startime}}开种</div>
					</div>
				</div>
			</div>
			</div>
			<div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
				<i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
			</div>
	</div>
</div>
<div ng-if="pagedata.showbuy" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#18bc9c">
			<style>
				.fui-cellone .fui-cellone-info {
					font-size: 0.85rem;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showbuy=false"></i>
			 <div class='fui-cell-group-o' style="margin:0.5rem 1rem;padding-top:0.5rem;background:#18bc9c">
				<div class='fui-cell-title c' style="color:#fff">您正在进行“排单种植”操作
				</div>
				<div class='fui-cellone'>
					<div class='fui-cellone-label big' style='width:auto;color:#fff'>种植{{pagedata.pluginset.cd_title}}</div>
				</div>
				<div class="c" style="color:#fff;font-size:0.55rem;margin-top:-0.3rem">
						{{pagedata.pluginset.cd_title}}可种植最大额度：{{pagedata.nowitem.jian_jinmax}}个，最小额度{{pagedata.nowitem.jian_jinmin || 0}}个
				</div>
				<div class='fui-cellone'>
					<div class='fui-cellone-info'>
						<input type='text' class='fui-input' style="width:100%;padding:0.3rem;border-radius:0.3rem" placeholder="要种植{{pagedata.pluginset.cd_title}}额度" ng-model="pagedata.post.jifen" ng-change="pagedata.upjifen2()">
					</div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:1rem 2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#18bc9c" ng-click="pagedata.topost(0)">(实际{{pagedata.post.jifen2 || 0}}个)确认提交</a>
			</div>
		</div>
	</div>
</div>
<div ng-if="pagedata.showyue" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#18bc9c">
			<style>
				.fui-cellone .fui-cellone-info {
					font-size: 0.85rem;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showyue=false"></i>
			 <div class='fui-cell-group-o' style="margin:0.5rem;padding-top:0.5rem;background:#18bc9c">
				<div class='fui-cell-title c' style="color:#fff;padding-bottom:0.3rem">您正在进行“预约种植”操作</div>
				<div class='fui-cell-title c' style="color:#f2f2f2;font-size:0.6rem;padding:0">(该期您已预约{{pagedata.nowitem.isyuenum||0}}次)</div>
				<div class='fui-cellone'>
					<div class='fui-cellone-label big' style='width:auto;color:#fff;margin-right:0.5rem'>预约方式</div>
					<div class='fui-cellone-info'>
						<div class="jylabel jylabel-switch-label">
								<span ng-class="{'jylabel-switch':1,'active':pagedata.post.type==1}" ng-click="pagedata.post.type=1;">种植券预约</span>
								<span ng-class="{'jylabel-switch':1,'active':pagedata.post.type!=1}" ng-click="pagedata.post.type=0;">积分预约</span>
						</div>
					</div>
				</div>
				<div class='fui-cellone'>
					<div class='fui-cellone-label big' style='width:auto;color:#fff'>种植{{pagedata.pluginset.cd_title}}</div>
				</div>
				<div class="c" style="color:#fff;font-size:0.55rem;margin-top:-0.3rem">
						{{pagedata.pluginset.cd_title}}可种植最大额度：{{pagedata.nowitem.jian_jinmax}}个，最小额度{{pagedata.nowitem.jian_jinmin || 0}}个
				</div>
				<div class='fui-cellone'>
					<div class='fui-cellone-info'>
						<input type='text' class='fui-input' style="width:100%;padding:0.3rem;border-radius:0.3rem" placeholder="要种植{{pagedata.pluginset.cd_title}}额度" ng-model="pagedata.post.jifen" ng-change="pagedata.upjifen2()">
					</div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:1rem 2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#18bc9c" ng-click="pagedata.topost(1)">(实际{{pagedata.post.jifen2 || 0}}个)确认预约</a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.pagedata.geturl='jy_nongfee/detail/getlist/'
scope.tool.get_list(scope.pagedata.geturl,true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list(scope.pagedata.geturl);
}
scope.pagedata.upjifen2=function(){
	scope.pagedata.post.jifen2=scope.pagedata.post.jifen*1
	scope.$evalAsync();
}
scope.pagedata.topost=function(isyue){
	isyue=isyue?isyue:0;
	scope.confirm({
		'message':'确认要支付吗？',
		'success':function(){
			scope.post(scope.pagedata.post,'/detail/post/isyue='+isyue)
		},
		'fail':function(){}
	});
}
</script>